<template>
	<view class="">
		<uni-nav-bar left-icon="back" left-text="返回" right-text="" title="" @clickLeft="returnback()"></uni-nav-bar>
		
	<view class='imagesize'>
		<image :src="channelMerchantsInfo.qrcodeUrl" class='in-image'></image>
	</view>
	</view>
</template>

<script>
	// const request = require("../../../common/request.js")
	export default {
		data() {
			return {
				channelMerchantsInfo:{}
			}
		},
		onShow: function() {
			const openId = uni.getStorageSync('openId');
			this.getUserInfo(openId);
		},
		methods: {
			returnback(){
				uni.navigateBack({
					delta: 1
				});
				console.log("xiaolin")
				// uni.navigateTo({
				//     url: '../index/index'   
				// });
				// uni.navigateTo({
				//     url: '../index/index'   
				// });
			},
			getUserInfo:function(id){
				let my=this;
				let data=request.request('/app/base/channelMerchantsInfo/info',{
					method:"GET",
					data:{
						id:id
					}
				});
				data.then((v)=>{
					if(v){
						my.channelMerchantsInfo=v;
					}
				});
			},
		}
	}
</script>

<style>
	page{
	   height:100%
	}
	.imagesize{
	 display:flex;
	 height: 100%;
	 justify-content: center;
	 align-items:center;
	 
	}
	.imagesize image { 
	  width:600rpx;
	  height:600rpx;
	  }
</style>
